package club.xyes.zkh.ecommerce.commons.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * Create by 郭文梁 2019/4/16 0016 17:56
 * Shop
 * 商铺实体类
 *
 * @author 郭文梁
 * @data 2019/4/16 0016
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "t_shop")
public class Shop extends BaseEntity {
    /**
     * 商铺名称
     */
    @Column(name = "name", nullable = false)
    private String name;
    /**
     * 登录名
     */
    @Column(name = "login_name", nullable = false)
    private String loginName;
    /**
     * 登录密码
     */
    @Column(name = "password", nullable = false)
    private String password;
    /**
     * 商铺电话
     */
    @Column(name = "phone", length = 30)
    private String phone;
    /**
     * 商铺地址
     */
    @Column(name = "address", nullable = false)
    private String address;
    /**
     * 省
     */
    @Column(name = "province")
    private String province;
    /**
     * 市
     */
    @Column(name = "city")
    private String city;
    /**
     * 区
     */
    @Column(name = "region")
    private String region;
    /**
     * 每日营业时间
     */
    @Column(name = "daily_hours")
    private String dailyHours;
    /**
     * logo_url 商家Logo地址
     */
    @Column(name = "logo_url", nullable = false)
    private String logoUrl;
    /**
     * 微信OpenId
     */
    @Column(name = "wx_open_id")
    private String wxOpenId;
    /**
     * 扫呗商户号
     */
    @Column(name = "merchant_no")
    private String merchantNo;
    /**
     * 扫呗终端号
     */
    @Column(name = "terminal_id")
    private String terminalId;
    /**
     * 扫呗访问令牌
     */
    @Column(name = "access_token")
    private String accessToken;
    /**
     * 促销活动图片
     */
    @Column(name = "promotion_image")
    private String promotionImage;
    /**
     * 通用支付地址
     */
    @Column(name = "general_pay_url", nullable = false)
    private String generalPayUrl;
    /**
     * 序列号
     */
    @Column(name = "sn", length = 100)
    private String sn;
}
